package cn.quevo.cube.provide.define.validate.impl;


import cn.quevo.cube.provide.define.entity.dto.CubeColumnDto;
import cn.quevo.cube.provide.define.validate.ColumnTypeValidate;

/**
 * 小数验证
 *
 * @author July july_sky@foxmail.com
 * @version 1.0
 * @date 2018/12/14 5:40 PM
 * @Copyright 湘豫（北京）科技有限公司版权所有.All Rights Reserved.
 */
public class NumericValidate extends NumberValidate implements ColumnTypeValidate {
    @Override
    protected void checked(CubeColumnDto cubeColumnDto) {
        super.checked(cubeColumnDto);
        cubeColumnDto.setDecimalNum(cubeColumnDto.getDecimalNum() == null ? 0 : cubeColumnDto.getDecimalNum());
    }
}
